export const VOCAL_CONCERT = {
    performanceType: 0,
    chineseName: "演唱会"
}
export const DRAMA_OPERA = {
    performanceType: 1,
    chineseName: "话剧歌剧"
}
export const LIVE_HOUSE = {
    performanceType: 2,
    chineseName: "live house"
}
export const MUSIC_CONCERT = {
    performanceType: 3,
    chineseName: "音乐会"
}
export const GALLERY_EXHIBITION = {
    performanceType: 4,
    chineseName: "展览集市"
}
export const DANCE_BALLET = {
    performanceType: 5,
    chineseName: "舞蹈芭蕾"
}
export const PARENT_CHILD = {
    performanceType: 6,
    chineseName: "儿童亲子"
}
export const TALK_SHOW = {
    performanceType: 7,
    chineseName: "曲艺杂谈"
}

export const PerformanceTypes = [
    VOCAL_CONCERT,
    DRAMA_OPERA,
    LIVE_HOUSE,
    MUSIC_CONCERT,
    GALLERY_EXHIBITION,
    DANCE_BALLET,
    PARENT_CHILD,
    TALK_SHOW
];

// 通过类型转换成一个对象
export function valueOf(performanceType) {
    return PerformanceTypes[performanceType];
}